home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / SML⁄NJ 93+ / Documentation / MacDoc93+ / 930212 how to build < prev    next >
Encoding:
Text File  |  1993-02-12  |  2.7 KB  |  65 lines  |  [TEXT/NJML]

  1. SMLeNJ How To Build
  2. 12Feb93  e
  3.  
  4. This is a description of how to build SML/NJ 0.93 on the Apple Macintosh.
  5.  
  6. You must be running MacOS System 7, use 32 bit addressing, and have at 
  7. least 16Mbytes of memory in your Mac to build SML/NJ. The Mac must also 
  8. have an FPU and the processor must be a M68020, M68030, or M68040.
  9.  
  10. You should have the AT&T distribution with:
  11. all the files from 93.src.tar.Z installed; 
  12. also the 93.mo.m68.tar.Z files should be located in the directory src:mo:
  13.  
  14. There are some Mac specific files in the src: and src:runtime: directories; 
  15. all of the files in the src:runtime:mac: directory are Mac specific.
  16.  
  17. The Mac specific files in src: are:
  18.  src:ANSI-ML
  19.  src:SMLeNJ.π
  20.  src:SMLeNJ.π.rsrc
  21.  
  22. Then to build SML/NJ for the Mac:
  23.  
  24. 1) launch ThinkC (5.04 or better) with the SMLeNJ.π project.
  25. Choose Build Application… from the Project menu. Save the application 
  26. in the src: directory with an appropriate name. Quit ThinkC.
  27.  
  28. 2) Verify that the application's preferred size is at least 12M bytes, 
  29. and that at least 12M bytes are free in the Mac. [You can find the 
  30. application's preferred size using Get Info in the File menu of the 
  31. Finder. You can determine how much memory is available using About 
  32. This Macintosh… in the Apple menu.]
  33.  
  34. 3) Launch the newly built application; you will be presented with a 
  35. dialog box expecting a command line, type: "-r 3 IntM68" and <return>.
  36. The mo files will be loaded.
  37.  
  38. 4) You may now save the SML image as a separate file to be imported later, 
  39. or you may save it into the newly built application. To save it into the 
  40. application, in this example named SMLeNJ93, type:
  41. if exportML("•SMLeNJ93") then print("Whoopee!\n") else print("\n");
  42. To save the image into its own file, use a different filename.
  43.  
  44. If you have already built a Mac image into a separate file, step 3 above 
  45. may be replaced by:
  46. 3) Launch the newly built application; you will be presented with a 
  47. dialog box expecting a command line, type: "-i <filename>" and <return>.
  48. The image file will be loaded.
  49.  
  50. Relaunching the newly built application will automatically load the image 
  51. exported into the application.
  52.  
  53. You may also force such an application to accept a command line by 
  54. holding down the <option> key while the application is being launched.
  55. At this point you may continue with step 3 above.
  56.  
  57. Developers: it is also possible to run with the ThinkC Debugger. In 
  58. step 1 above, select Use Debugger, and use Run instead of Build 
  59. Application. You will be presented with a command line dialog box. 
  60. Proceed as above (step 3) or use the other command line options.
  61.  
  62. The file src:ANSI-ML is a ThinkC project based on Semantec's ANSI-32 
  63. project. The sources are not included since they are owned by Semantec. 
  64. You already have the sources if you have ThinkC 5.04.
  65.